package com.darkplanet.management.service;

import com.darkplanet.management.dao.ModelDao;
import com.darkplanet.management.domain.Model;
import com.darkplanet.management.domain.Requirement;

import java.util.List;

public class ModelService {
        ModelDao modelDao = new ModelDao();

    public void addModelUser(Integer requirement_id,String model_name,String priority,String simple_desc,String comlplex_desc,String remark) {
        modelDao.addModelUser(requirement_id,model_name,priority,simple_desc,comlplex_desc,remark);
    }

    public void deleteModelUser(Integer model_id){
        modelDao.deleteModelUser(model_id);
    }

    public void updateModelUser(Integer requirement_id,String model_name,String priority,String simple_desc,String comlplex_desc,String remark,Integer model_id){
        modelDao.updateModelUser(requirement_id,model_name,priority,simple_desc,comlplex_desc,remark,model_id);
    }

    public Model getUserById(Integer model_id){
        return modelDao.getUserById(model_id);
    }

    public List getModelUser(){
        return modelDao.getModelUser();
    }


}
